import {createApp} from 'vue'
import './assets/style.css'
import App from './App.vue'
import {setupRouter} from '@/router'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import {Dialog} from 'vant'
import 'vant/lib/index.css';
import * as ElementPlusIconsVue from '@element-plus/icons-vue'
import {pinia} from '@/stores'

function bootstrap() {
    const app = createApp(App)
    setupRouter(app)
    app.use(ElementPlus)
    app.use(Dialog)
    for (const [key, component] of Object.entries(ElementPlusIconsVue)) {
        app.component(key, component)
    }
    app.use(pinia)
    app.mount('#app')
}

bootstrap()

